<?php 
	include_once("../config/database.php");
	class NhanVien extends database{
		private $msNhanVien;
		private $hoTen;
		private $ngaySinh;
		private $queQuan;
		private $CMND;
		private $dienThoai;
		private $matKhau;
		private $isAdmin;
		
		public function setMsNhanVien($msNhanVien){
			$this->msNhanVien = $msNhanVien;	
		}
		public function getMsNhanVien(){
			return $this->msNhanVien;	
		}
		public function setHoTen($hoTen){
			$this->hoTen = $hoTen;	
		}
		public function getHoTen(){
			return $this->hoTen;	
		}
		public function setNgaySinh($ngaySinh){
			$this->ngaySinh = $ngaySinh;	
		}
		public function getNgaySinh(){
			return $this->ngaySinh;	
		}
		public function setQueQuan($queQuan){
			$this->queQuan = $queQuan;	
		}
		public function getQueQuan(){
			return $this->queQuan;	
		}
		public function setCMND($CMND){
			$this->CMND = $CMND;	
		}
		public function getCMND(){
			return $this->CMND;	
		}
		public function setDienThoai($dienThoai){
			$this->dienThoai = $dienThoai;	
		}
		public function getDienThoai(){
			return $this->dienThoai;	
		}
		public function setMatKhau($matKhau){
			$this->matKhau = $matKhau;	
		}
		public function getMatKhau(){
			return $this->matKhau;	
		}
		public function setIsAdmin($isAdmin){
			$this->isAdmin = $isAdmin;	
		}
		public function getIsAdminh(){
			return $this->isAdmin;	
		}
		
		public function add(){
			$this->setQuery("INSERT INTO NhanVien VALUES ( 26, 'AAAA', curdate(), 'Ninh Kiều - Cần Thơ', '363637600', '0939123456', 'ErenJaeger', '123456', true)");
			echo $this->getQuery();
			return $this->executeQuery1();
			
		}
		
			
		public function getDsNhanVien(){
			$this->setQuery("select msNhanVien, hoTen, ngaySinh, queQuan, CMND, soDT, tenDangNhap, isAdmin from NhanVien order by msNhanVien");
			return  $this->executeQuery();
		}
		public function checkLogin(){
		}
	}
?>